package com.example.conf.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 会员任务
 * </p>
 *
 * @author wpdcn
 * @since 2020-09-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("member_task")
@ApiModel(value="MemberTaskEntity对象", description="会员任务")
public class MemberTaskEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @Column(comment = "主键id")
    @ApiModelProperty(value = "主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Column(comment = "会员id")
    @ApiModelProperty(value = "会员id")
    private String memberId;

    @Column(comment = "任务名称")
    @ApiModelProperty(value = "任务名称")
    private String name;

    @Column(comment = "积分价值")
    @ApiModelProperty(value = "积分价值")
    private Double scoreValue;

    @Column(comment = "任务类型：1-完善个人信息；2-分享；3-产品评价")
    @ApiModelProperty(value = "任务类型：1-完善个人信息；2-分享；3-产品评价；")
    private String type;

    @Column(comment = "任务创建时间")
    @ApiModelProperty(value = "任务创建时间")
    private LocalDateTime createTime;

    @Column(comment = "任务完成时间")
    @ApiModelProperty(value = "任务完成时间")
    private LocalDateTime overTime;

    @Column(comment = "任务状态：0-未完成；1-已完成")
    @ApiModelProperty(value = "任务状态：0-未完成；1-已完成")
    private String status;


}
